package com.sx.manage.controller.operation;

import java.io.IOException;

import javax.annotation.Resource;
import javax.servlet.ServletException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sx.common.util.json.JackJsonUtil;
import com.sx.manage.controller.base.MBaseController;
import com.sx.manage.service.operation.SysAccountInfoService;
import com.sx.manage.servlet.ViewAndModel;
import com.sx.model.manage.mybatis.form.sys_operation.MSysAccountInfoForm;
import com.sx.model.manage.mybatis.vo.operation.MSysAccountInfoVO;
import com.sx.model.manage.mybatis.vo.result.ResultListVO;
@Controller
@RequestMapping("/sys_account")
public class MSysAccountInfoController extends MBaseController{
	
	private Logger _log = LoggerFactory.getLogger(this.getClass());
	@Resource(name="sysAccountInfoService")
	private SysAccountInfoService sysAccountInfoService;
	
	/**
	 * 账户信息查询列表
	 * @return
	 */
	@RequestMapping(value="query_sys_account_view")
	public ViewAndModel query_viewSysAccount(){
		ViewAndModel model=new ViewAndModel(request,cache);
		model.setViewName("sysMaintain/boothNo");//修改ftl页面名称
		return model;
	}
	/**
	 * 
	 * @param form
	 * @return
	 * @throws ServletException
	 * @throws IOException
	 */
	@RequestMapping("/query_sys_account_page")
	@ResponseBody
	public ResultListVO<MSysAccountInfoVO> search_sysAccount(MSysAccountInfoForm form){
		_log.debug("添加系统操作日志：MSysAccountInfoController===search_sysAccount==formJson="+JackJsonUtil.objToJson( form ));
		return this.sysAccountInfoService.search_sys_account(form);
	}

	
	

}
